
#include <dev.h>
#include "i2c.h"

/* ------------------------------------------------------------------------- */

static i2c_dev_t hdtv_dev;

static size_t fastcall hdtv_read(uint8 cmd, void *data, size_t size);
static size_t fastcall hdtv_write(uint8 cmd, const void *data, size_t size);

/* ------------------------------------------------------------------------- */

i2c_dev_t *get_hdtv_device(void)
{
	memset(&hdtv_dev, 0, sizeof(hdtv_dev));

#ifndef NDEBUG
	strcpy(hdtv_dev.name, "HDTV");
#endif

	hdtv_dev.read = &hdtv_read;
	hdtv_dev.write = &hdtv_write;

	return &hdtv_dev;
}

/* ------------------------------------------------------------------------- */

static size_t fastcall hdtv_read(uint8 cmd, void *data, size_t size)
{
	return size;
}

static size_t fastcall hdtv_write(uint8 cmd, const void *data, size_t size)
{
	return size;
}

/* ------------------------------------------------------------------------- */
